package com.foreknow.demo18;

import com.sun.xml.internal.bind.v2.runtime.unmarshaller.XsiNilLoader;

public class Singleton {
    private String name;
    private static Singleton singleton = new Singleton();
    //私有的构造器
    private Singleton() {

    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public static Singleton getSingleton() {
        return singleton;
    }


}